<?php
$header = array(
	'Image'=>'',
	'Tên game'=>'', 
	'Thành viên'=>'',
	'IP'=>'',
	'Điểm'=>'',
	'Ngày tạo'=>'style="width: 150px;"',

	);
$config = array(
    'header_icon' => @$this->resource->RES_ICON,
    'header_title' => 'Quản lý '.@$this->resource->RES_NAME,
    'add_title' => 'Thêm '.@$this->resource->RES_NAME,
    'ID' => '0',
    'showEdit' => false,
    'showDelete' => false,
    'showAdd' => false,
);
if ($this->permission->check("delete", $this->resource->RES_CODE))
    $config['showDelete'] = true;

if ($this->permission->check("update", $this->resource->RES_CODE))
    $config['showEdit'] = true;
	
//if ($this->permission->check("insert", $this->resource->RES_CODE))
   // $config['showAdd'] = true;

$data = array();
$stt = 0;
foreach ($datas as $result) {
    $data[] = array($result->{$this->{$this->model}->primaryKey},'<img src="'.image_src($result->game_thumb).'" width="50" height="50">', '<a href="'.game_url($result->game_id, $result->game_code).'" target="_blank">'.$result->game_title.'</a>',$result->use_account,$result->gscore_ip, $result->gscore_scores, date("d/m/Y H:i:s",$result->gscore_time_create));
}
echo $this->atheme->table_simple($header, $data, $config);
?>

